﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Crossborder.Core.Migrations
{
    /// <inheritdoc />
    public partial class _25082001log : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ProductSpec",
                table: "OrderDetail");

            migrationBuilder.AddColumn<string>(
                name: "ProductNo",
                table: "ProductInfos",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "",
                comment: "产品编号");

            migrationBuilder.AddColumn<string>(
                name: "ClassifyName",
                table: "OrderDetail",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "",
                comment: "商品分类");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ProductNo",
                table: "ProductInfos");

            migrationBuilder.DropColumn(
                name: "ClassifyName",
                table: "OrderDetail");

            migrationBuilder.AddColumn<string>(
                name: "ProductSpec",
                table: "OrderDetail",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "",
                comment: "商品规格");
        }
    }
}
